import Vue from 'vue'

// 自定义指令
Vue.directive('err', {
  bind(el, binding) {
    el.onerror = function() {
      el.src = require('@/assets/common/df.png')
    }
  }
})
// 动态自定义指令
Vue.directive('errplus', {
  bind(el, binding) {
    el.onerror = function() {
      el.src = binding.value
    }
  }
})
